package com.maimao.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maimao.model.user.Enterprise;
import com.maimao.model.user.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/11/29 12:05 上午
 */
public interface CompanyMapper extends BaseMapper<Enterprise> {

    Enterprise selectByEmail(@Param("email") String email);

    Integer findShopStatusById(@Param("id") Long id);

    List<Enterprise> queryShopCheck();

    int updateShopStatus(@Param("id") Long id, @Param("shopStatus") int shopStatus, @Param("reason") String reason);
}
